package mn.idax.exchange.otc.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import mn.idax.exchange.common.bean.IdaxBase;
import mn.idax.exchange.otc.enums.LogTypeEnum;
import mn.idax.exchange.otc.enums.MessageTypeEnum;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@NoArgsConstructor
@Document(collection = "otc_chat_log")
public class ChatLog extends IdaxBase {

    //消息唯一标识
    @Field
    private String uuid;
    //发送时间
    @Field
    private Long sendTime;
    //发送内容
    @Field
    private String message;
    //资源地址
    @Field
    private String source;
    //原文件名
    @Field
    private String name;
    //消息内容类型
    @Field
    private MessageTypeEnum msgType;
    //消息发送类型
    @Field
    private LogTypeEnum logType;
    //已读标识
    @Field
    private Integer readFlag;

    /**
     * 发送人头像
     */
    @Field
    private String userLogo;
    @Field
    private Integer buyerReadFlag;
    @Field
    private Integer sellerReadFlag;
    @Field
    private Integer buyerId;
    @Field
    private Integer sellerId;
    @Field
    private String orderNum;

    //订单唯一标识
    @Field
    private String orderId;
    //发送人
    @Field
    private Integer senderId;
    //更新时间
    @Field
    private Long updateTime;

    private Object[] dynamicParam;

}
